package cn.kbyue.swagger3.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * test
 *
 * @author xl
 * @date 2020/8/19 23:57
 */
@Api(tags = "swagger")
@RestController
public class TestController {

    @ApiOperation("返回说明")
    @GetMapping("/success")
    public ResponseEntity<String> method() {

        return ResponseEntity.ok().body("success");
    }
}
